<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head>
  <meta name="copyright" content=
  "Copyright (c) IBM Corporation and others 2000, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <link rel="STYLESHEET" href="../book.css" charset="ISO-8859-1" type="text/css">
  <title>Replacing a resource with local history</title>
  <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"></script>
</head>
<body bgcolor="#FFFFFF">
  <h1>Replacing a resource with local history</h1>
  <p>To replace an unmanaged Workbench resource with a state in the local history:</p>
  <ol>
    <li>In one of the navigation views, select the resource that you want to replace with a local history state.</li>
    <li>From the resources pop-up menu, select <b>Replace with</b> &gt; <b>Local History</b>. The Replace from Local
    History page opens.</li>
    <li>Select a state from the <b>Local History</b> list. The Text Compare editor opens.</li>
    <li>Click the <b>Select Next Change</b> and <b>Select Previous Change</b> buttons to browse through the changes
    made between states in the local history and the Workbench resource.</li>
    <li>Select the state you want to replace, and click <b>Replace</b>.</li>
  </ol>
  <p>To replace a Workbench resource managed by VCS with a state in the local history:</p>
  <ol>
    <li>In one of the navigation views, select the resource that you want to replace with a local history state.</li>
    <li>From the resources pop-up menu, select <b>Replace with</b> &gt; <b>History...</b>. The History View opens.</li>
    <li>Put the History View into <em>Local Revision</em> mode by clicking on the Local Revision toolbar button. This
    will display only Local History revisions in the History View.</li>
    <li>Select the revision you want to replace the current revision and select <b>Get Contents</b> from the context
    menu.</li>
  </ol>
  <p><em>Tip</em>: You can configure your general preferences to specify how many days to keep files, or how many
  entries per file you want to keep, or the maximum file size for files to be kept with the <a class="command-link"
  href=
  'javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ui.preferencePages.FileStates)")'>
  <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="command link"> <b>General &gt; Workspace &gt; Local
  History</b></a> preference page.</p>
  <h3 class="related">Related concepts</h3><a href="../concepts/concepts-17a.htm">Local history</a><br>
  <a href="../concepts/concepts-12.htm">Resources</a>
  <h3 class="related">Related tasks</h3><a href="tasks-70.htm">Comparing resources with the local history</a><br>
  <a href="tasks-87b.htm">Restoring deleted resources from the local history</a><br>
  <a href="tasks-88.htm">Setting local history preferences</a>
</body>
</html>
